Intelligent remote control

ABSTRACT

A content access device and system may allow portable remote devices to be paired with a variety of different devices, allowing remote control through a network connection. Content access devices may expose application program interfaces, allowing incoming network traffic to control operation of the device much in the same way that a local infrared remote would. Routing content commands through an external application server may also yield other benefits, such as allowing more customized selection of information and advertising content to users based on their viewing history.

CROSS-REFERENCE TO RELATED APPLICATIONS

This patent is a continuation of U.S. application Ser. No. 16/387,030filed on Apr. 17, 2019 (now U.S. Pat. No. 11,109,091), which is acontinuation of U.S. application Ser. No. 15/642,043, filed on Jul. 5,2017 (now U.S. Pat. No. 10,313,732), which is a continuation of U.S.application Ser. No. 15/017,893, filed on Feb. 8, 2016 (now U.S. Pat.No. 9,736,525), which is a continuation of U.S. application Ser. No.13/103,574, filed on May 9, 2011 (now U.S. Pat. No. 9,294,800), whichclaims the benefit of U.S. Provisional Application Ser. No. 61/333,066filed on May 10, 2010. All of which are hereby incorporated by referencein their entirety.

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains materialwhich is subject to copyright protection. The copyright owner has noobjection to the facsimile reproduction by anyone of the patent documentor the patent disclosure, as it appears in the Patent and TrademarkOffice patent file or records, but otherwise reserves all copyrightrights whatsoever.

BACKGROUND

Television viewers have grown accustomed to the ubiquitous remotecontrol. With it, a viewer can change the channel, adjust the volume,and power on/off their television. More modern remote controls haveincreased the functionality, to allow the remote controls to controlother devices in the home. For example, a “universal” remote can controlboth a VCR and a television. The introduction of the digital videorecorder (DVR) added a new level of functionality to the remote control,and viewers are now able to record, pause, and rewind televisionprograms at their whim.

Despite the usefulness and convenience of conventional remote controls,there remains an ever-present need for even more convenience and evenmore usefulness.

SUMMARY

The features described herein generally relate to allowing network-basedremote control of a user's device to access content. In someembodiments, a user may use a networked remote device, such as anInternet Protocol-enabled mobile device, to interact with a web serverthat offers control options for a user's controlled device, such as aset-top box (STB), digital video recorder (DVR), display device,television, or any other computing device used by the user to consumecontent. Through the web server, the user may pair his/her remote devicewith the controlled device that is to be controlled, and then entercontrol commands via the web server. The web server may receive commandsvia, for example, a web page, or alternatively via an exposed API, andcan prepare corresponding commands to control the user's controlleddevice. The user may then remotely control their controlled deviceusing, for example, their Internet-enabled cellular telephone. Theuser's controlled device may be configured to execute an application toreceive such Internet-originated commands, forming a software controlplane with the server.

An application server may receive the web-based commands, and may usethe commands to offer enhanced services and information to the user. Forexample, social networking options may be provided to the user inconnection with the program the user is watching. Usage data can also becollected at the application server, and used to provide targetedinformation (e.g., advertisements, television show recommendations,etc.) to the user based on demographic information.

Routing content access commands, such as channel tuning and programselection commands, through an external application server may allowfurther functionality as well. For example, the application server mayuse the information to support social viewing experiences. A user cansend an invitation to a friend, inviting the friend to join in watchinga currently-watched program, and accepting the invitation can result inthe friend's access device automatically tuning to the same program. Thetwo can then engage in an online chat while viewing the same program.

This summary is not intended to identify critical or essential featuresof the disclosures herein, but instead merely summarizes certainfeatures and variations thereof.

Other details and features will also be described in the sections thatfollow.

BRIEF DESCRIPTION OF THE DRAWINGS

Some features herein are illustrated by way of example, and not by wayof limitation, in the figures of the accompanying drawings and in whichlike reference numerals refer to similar elements.

FIG. 1 illustrates an example information distribution network.

FIG. 2 illustrates an example hardware platform on which the variouselements described herein can be implemented.

FIG. 3 illustrates an example flow for an intelligent remote control.

FIGS. 4-9 c illustrate various remote control application displays inaccordance with some embodiments.

FIGS. 10 a & b illustrate example pairing screens.

FIGS. 11-15 illustrate additional example remote control applicationscreens.

FIG. 16 illustrates an example pairing flow.

FIG. 17 illustrates an example remote control application display.

DETAILED DESCRIPTION

FIG. 1 illustrates an example information distribution network 100 onwhich many of the various features described herein may be implemented.Network 100 may be any type of information distribution network, such assatellite, telephone, cellular, wireless, etc. One example may be anoptical fiber network, a coaxial cable network or a hybrid fiber/coax(HFC) network. Such networks 100 use a series of interconnectedcommunication lines 101 (e.g., coaxial cables, optical fibers, wireless,etc.) to connect multiple homes 102 to a central office or headend 103.The central office 103 may transmit downstream information signals ontothe lines 101, and each home 102 may have a receiver used to receive andprocess those signals.

There may be one line 101 originating from the central office 103, andit may be split a number of times to distribute the signal to varioushomes 102 in the vicinity (which may be many miles) of the centraloffice 103. The lines 101 may include components not illustrated, suchas splitters, filters, amplifiers, etc. to help convey the signalclearly, but in general each split introduces a bit of signaldegradation. Portions of the lines 101 may also be implemented withfiber-optic cable, while other portions may be implemented with coaxialcable, other lines, or wireless communication paths.

The central office 103 may include a termination system (TS) 104, suchas a cable modem termination system (CMTS), which may be a computingdevice configured to manage communications between devices on thenetwork of lines 101 and backend devices such as servers 105-107 (to bediscussed further below). The TS may be as specified in a standard, suchas the Data Over Cable Service Interface Specification (DOCSIS)standard, published by Cable Television Laboratories, Inc. (a.k.a.CableLabs) for HFC-type networks, or it may be a similar or modifieddevice instead. The TS may be configured to place data on one or moredownstream frequencies to be received by modems at the various homes102, and to receive upstream communications from those modems on one ormore upstream frequencies. The central office 103 may also include oneor more network interfaces 108, which can permit the central office 103to communicate with various other external networks 109. These networks109 may include, for example, networks of Internet devices, telephonenetworks, cellular telephone networks, fiber optic networks, localwireless networks (e.g., WiMAX), satellite networks, and any otherdesired network, and the interface 108 may include the correspondingcircuitry needed to communicate on the network 109, and to other deviceson the network such as a cellular telephone network and itscorresponding cell phones.

As noted above, the central office 103 may include a variety of servers105-107 that may be configured to perform various functions. Forexample, the central office 103 may include a push notification server105. The push notification server 105 may generate push notifications todeliver data and/or commands to the various homes 102 in the network (ormore specifically, to the devices in the homes 102 that are configuredto detect such notifications). The central office 103 may also include acontent server 106. The content server 106 may be one or more computingdevices that are configured to provide content to users in the homes.This content may be, for example, video on demand content, data,television programs, songs, text listings, etc. The content server 106may include software to validate user identities and entitlements,locate and retrieve requested content, encrypt the content, and initiatedelivery (e.g., streaming) of the content to the requesting user and/ordevice.

The central office 103 may also include one or more application servers107. An application server 107 may be a computing device configured tooffer any desired service, and may run various languages and operatingsystems (e.g., servlets and JSP pages running on Tomcat/MySQL, OSX, BSD,Ubuntu, Redhat, HTMLS, JavaScript, AJAX and COMET). For example, anapplication server may be responsible for collecting television programlistings information and generating a data download for electronicprogram guide listings. Another application server may be responsiblefor monitoring user viewing habits and collecting that information foruse in selecting advertisements. Another application server may beresponsible for formatting and inserting advertisements in a videostream being transmitted to the homes 102. Other application servers 107may be used for billing, entitlements, voice over Internet Protocolhandling, single sign-on, and any other desired feature. And as will bediscussed in greater detail below, another application server may beresponsible for receiving user remote control commands, and processingthem to provide an intelligent remote control experience.

An example home 102 a may include a modem 110, which may includetransmitters and receivers used to communicate on the lines 101 and withthe central office 103. The modem 110 may be, for example, a coaxialcable modem (for coaxial cable lines 101), a fiber interface node (forfiber optic lines 101), or any other desired modem device. The modem 110may be connected to, or be a part of, a gateway interface device 111.The gateway interface device 111 may be a computing device thatcommunicates with the modem 110 to allow one or more other devices inthe home to communicate with the central office 103 and other devicesbeyond the central office. The gateway 111 may be a set-top box (STB),digital video recorder (DVR), computer server, or any other desiredcomputing device. The gateway 111 may also include (not shown) localnetwork interfaces to provide communication signals to devices in thehome, such as televisions 112, additional STBs 113, personal computers114, laptop computers 115, wireless devices 116 (wireless laptops andnetbooks, mobile phones, mobile televisions, personal digital assistants(PDA), etc.), and any other desired devices. Examples of the localnetwork interfaces include Multimedia Over Coax Alliance (MoCA)interfaces, Ethernet interfaces, universal serial bus (USB) interfaces,wireless interfaces (e.g., IEEE 802.11), Bluetooth interfaces, andothers. Some devices, such as wireless devices 116, may be used as auser's remote control device, described further below. These devices mayalso be external remote control devices 117, usable outside of theuser's home 102.

FIG. 2 illustrates general hardware (some of which can be implemented insoftware as well) elements that can be used to implement any of thevarious computing devices discussed above. The computing device 200 mayinclude one or more processors 201, which may execute instructions of acomputer program to perform any of the features described herein. Theinstructions may be stored in any type of computer-readable medium ormemory, to configure the operation of the processor 201. For example,instructions may be stored in a read-only memory (ROM) 202, randomaccess memory (RAM) 203, removable media 204, such as a Universal SerialBus (USB) drive, compact disk (CD) or digital versatile disk (DVD),floppy disk drive, or any other desired electronic storage medium.Instructions may also be stored in an attached (or internal) hard drive205. The computing device 200 may include one or more output devices,such as a display 206 (or an external television), and may include oneor more output device controllers 207, such as a video processor. Theremay also be one or more user input devices 208, such as a remotecontrol, keyboard, mouse, touch screen, microphone, etc. The computingdevice 200 may also include one or more network interfaces, such asinput/output circuits 209 (such as a network card) to communicate withan external network 210. The network interface may be a wired interface,wireless interface, or a combination of the two. In some embodiments,the interface 209 may include a modem (e.g., a cable modem), and network210 may include the communication lines 101 discussed above, theexternal network 109, an in-home network, a provider's wireless,coaxial, fiber, or hybrid fiber/coaxial distribution system (e.g., aDOCSIS network), or any other desired network.

Various features described herein offer improved remote controlfunctionality to users accessing content from the central office 103.For example, one such user may be a viewer who is watching a televisionprogram being transmitted from the central office 103. In someembodiments, the user may be able to control his/her viewing experience(e.g., changing channels, adjusting volume, viewing a program guide,etc.) using any networked device, such as a cellular telephone, personalcomputer, personal data assistant (PDA), netbook computer, etc., asidefrom (or in addition to) the traditional infrared remote control thatmay have been supplied together with a television or STB.

FIG. 3 illustrates a general example of how such an intelligent remotecontrol experience may be implemented, with steps that may be performedat various places in the overall network 100. Beginning in step 301, oneor more software applications may be initialized for operation. Thisinitialization may involve loading and/or running software onto variouscomputing devices, such as a user's remote control device (e.g.,wireless device 116, computer 114, external wireless device 117, etc.),an application server 107, or the user's controlled device (e.g., thegateway 111, STB 113 and/or television 112 (or another display device orcontent access device)). One example application loaded on theapplication server 107 may include application program interfaces (APIs)that expose certain commands the user's remote control device, which theremote control device can use to request that the application server 107send a corresponding command to the user's controlled device. The tablebelow illustrates an example listing of commands (e.g., code received inan EBIF (Enhanced Television Binary Interchange Format) message) thatcan be exposed by the API, along with their function (e.g., name of asoftware routine to be executed by the application server 107 when theenumerated command is received) and parameters (e.g., data values to bepassed to/from the executed routine):

Command Code Function Parameters 1 Channel Tune Channel Source ID 2 VODTelescope ProviderID, AssetID 3 DVR Record Source ID, Start Time 4 DVRSeries Record Source ID, Start Time, Series ID 5 Basic Message Payload 6Instantiate App Payload, App ID 7 Executable Message Message Payload

The Channel Tune routine may, for example, cause the application server107 to instruct the controlled device (e.g., gateway 111, STB/DVR 113,content consuming computer 114, or whichever device is to be controlled)to tune to a channel or service identified by the Channel Source ID. Forexample, the Channel Tune function can be used to instruct thecontrolled device to tune to Home Box Office (HBO), and the controlleddevice may respond by changing channel to HBO. The controlled device'sresponse may follow the same approach as if the user had requested HBOfrom the gateway 111 or STB/DVR 113's program guide, or entered channelnumbers using a local infrared remote.

The VOD (video on demand) Telescope routine may cause application server107 to begin a video on demand stream containing the identified assetfrom the identified provider, and to instruct a user's controlled deviceto tune to that stream.

The DVR Record routine may cause the application server 107 to instructthe controlled device to schedule a recording of an identified source(e.g., channel, service, stream, etc.) at the identified time. This mayresult in, for example, the DVR 113 setting a future recording schedule.

The DVR Series Record routine may cause the application server 107 toinstruct the controlled device to schedule a recording of each episodeof an identified program series from an identified source to begin atthe identified time.

The Basic Message routine may cause the application server 107 toinstruct the controlled device to generate an onscreen display on aconnected display device (e.g., television) of a message in the payload.

The Instantiate App routine may cause the controlled device to beginexecuting an identified application. For example, if the user is biddingin an online auction and is outbid, the user's controlled device (e.g.,a gateway 111 or STB/DVR 113) may receive a message containing aninteractive Payload message for display (“You've been outbid for itemXX, press [Auction] to view your auctions page.”), and an identificationof an application (which can be resident on the gateway) that should beexecuted by the controlled device. This application can be a 3′ partyapplication that need not even be running on the user's remote device116 that issued the Instantiate App command.

The Executable Message routine may cause the application server 107 toinstruct the controlled device to display an interactive message. Thismessage may be a pop-up message with one or more interactive buttons,and a prompt. For example, the pop-up message may notify the user that aparticular program is available for recording or video on demand, withbuttons that would set a DVR recording or initiate a video on demandstreaming session (e.g., “Lost series premier is on Tuesday, would youlike to record?”, or “Spiderman 3 is available now on demand, would youlike to watch?”). The Executable Message routine may be similar to theInstantiate App routine, but can simply execute a native applicationthat may be available on the user's remote control device (e.g., 116 or117) as well.

The commands listed above are merely exemplary, and other commands maybe used as well. For example, commands for other remote control commandsmentioned above (e.g., numeric entry, rewind, fast-forward, pause, mute,directional navigation, menu, etc.) may also be implemented with theirown commands.

In addition to initializing a command application on the applicationserver 107, the step 301 initialization may also include installing (orinitializing) a listener application on the controlled device, such asthe gateway 111 or STB/DVR 113, television 112 (or whatever device is tobe controlled). The listener application may be an unbound EBIFapplication, existing independent of the particular channel or servicebeing currently tuned by the user's controlled device, and may beconfigured to receive commands from, for example, an application server107 at the central office 103, to control various aspects of itself,such as channel tuning, recording, volume, etc. The listener applicationmay perform other functions as well, such as detecting telephone callerID pop-up requests, receiving and rendering stock market alerts,announcing arriving emails, providing billing notices to the user,alerting the user that a new movie is available for VOD viewing, or anyother desired function. These alerts may be displayed by the controlleddevice on an associated display (e.g., a television), or on the user'sremote control device 116 or 117, or both using, for example, the BasicMessage routine noted above. The command application on the server 107and listener application on the controlled device may form a controlplane for controlling the operation of the controlled device, and thecontrol plane can be implemented using any desired communicationprotocol, such as the EBIF example discussed above, or other protocolssuch as OCAP (OpenCable Applications Platform), DTA, GoogleTV, etc.

The initialization 301 may also include initializing a pairingapplication at the controlled device. The pairing application mayinclude instructions that cause the controlled device to provide theapplication server 107 with identification information for a user'sremote control device (e.g., a personal computer 114, laptop 115, mobiledevice 116, external mobile device 117, etc.) that will be permitted tocontrol the operation of the controlled device. This identificationinformation can be a unique address of the remote control device oruser, or it could be a randomly-generated passphrase (discussed below).The pairing may also inform the application server 107 that theparticular remote control device is to be permitted to control thecontrolled device, and can identify the parameters needed for thedesired control plane (e.g., identifying the APIs and/or parameters inthe example commands above, and any other desired communicationparameters).

A pairing application may also be installed on one or more remotecontrol devices, such as a netbook computer, personal computer, mobilephone, etc. The remote control pairing application may include, forexample, an address (e.g., an IP address, URL identification, etc.) of acentral office 103 (or other server on network 109) that can handlepairing for the device, and program instructions for transmitting apairing request to the central office 103. In some embodiments, thepairing application can reside at a network server, such as an Internetor local intranet server connected to network 109, or the applicationserver 107. The remote control device may access the pairing applicationusing a web browser, allowing any web-enabled device to serve as aremote control device.

The remote control device may also install a remote control application.The remote control application may contain program instructions forgenerating a user interface that the user can use to control the remotecontrol device, and instructions for transmitting commands to theapplication server 107. Similar to the pairing application discussedabove, the remote control device also need not install a dedicatedremote control application. Instead, the various user interfaces andfunctionality for a remote control application may simply reside on anetworked server, such as on the application server 107, or anotherInternet or local intranet server accessible via the network 109. Such auser interface may simply be an HTTP (Hyper-Text Transfer Protocol)document, accessible by any compatible device, such as a web-enableddevice that is configured to handle HTML documents, Java, IPHONE nativeapplications, PSP, BLACKBERRY, etc. In such an example, the remotecontrol device can simply use a web browser application to access acontrolled device's remote control website, and perform the functionsbelow using that web page interface.

In step 302, the controlled device may determine whether a pairingrequest has been received. The pairing request may be received any timea user wishes to begin using a particular remote control device tocontrol a controlled device, such as the gateway 111 or STB/DVR 113. Therequest may be received, for example, when the user presses a “Pairing”button on the gateway/STB/DVR 111, choosing a “Pairing” option in anon-screen program guide, or otherwise signals to it that pairing isrequested.

If pairing is requested, then in step 303, the controlled device maygenerate a passphrase (e.g., a randomly-generated alphanumeric value,such as “Z12SP4”), and may display this passphrase on an associateddisplay device, such as a television. FIGS. 10 a & b illustrate examplescreens that may be displayed by the controlled device (or generated fordisplay on an associated display device, such as a computer monitor ortelevision) during the pairing operation. The controlled device may thentransmit, in step 304, a pairing request message to the applicationserver 107, informing the server 107 that a pairing has been requested,and providing the controlled device's own ID (e.g., a unique mediaaccess control—MAC—address, customer identifier, or otheridentification) and the passphrase. In some embodiments, the controlleddevice or the server 107 can note the time that the passphrase wasgenerated or delivered, and can set a time-to-live (TTL) value for thepassphrase to a limited amount of time (e.g., 30 minutes).

In step 305, the user may view the passphrase on the television, andinitiate the pairing application on his/her remote control device. Forexample, the user may open the application on a mobile telephone (oropen a web browser and go to a remote control website hosted byapplication server 107), and enter the passphrase. The application maythen transmit a remote control pairing message containing its ownidentification information (e.g., an IP address of the remote controldevice, a MAC address of the remote control device, telephone number,user identification, etc.) and the passphrase to the central office 103,and to the application server 107. This transmission can be performed inany desired manner, depending on the data connection of the remotecontrol device. For example, if the remote control device is a cellulartelephone, such as telephone 117 in FIG. 1 , then the transmission maybe performed by the telephone 117 using its own radio transmitter andthrough a cellular telephone network 109 to arrive at the central office103. The transmission may be an HTTP message to supply the passphraseand address information to the application server 107 (or other serverhosting the remote control interface). The transmission may also includeany desired parameters for the control plane, such as identification ofthe protocol to use (e.g., EBIF), the command APIs, etc.

In step 306, the application server 107 may receive both the pairingrequest from the controlled device, and the remote control devicepairing message from the remote control device that the user wishes touse as a remote control. The server may receive many such messages fromdifferent devices, and may use the passphrase to uniquely identify amatched pair of a remote control device and controlled device. Havingthe controlled device generate the passphrase may help minimize thechance of an unauthorized pairing.

Once the application server 107 has identified the pair, it may thenconduct a validity or entitlement check on the pair to verify that therequests appear genuine. A part of this check may involve comparing thecurrent time with the time-to-live value from above, to determine if theremote control device sent its pairing request within the TTL window. Ifthe pair is approved, then the server 107 may store a record,associating the remote control device's unique address or identifierwith that of the controlled device. In some embodiments, a pairing mayrequire authentication of the user and/or remote control device. Forexample, the application server 107 may require that the user also entera password, to help assure that the user is legitimately permitted tocontrol a given STB. If desired, any control plane parameters (e.g.,EBIF command APIs, communication protocols, etc.) may also beestablished, and the application server 107 can configure itself to usethe appropriate parameters for the command communications with thecontrolled device to control operation.

After a controlled device has been successfully paired with a remotecontrol device, it may then be ready to be controlled by that remotecontrol device. Example control by the remote control device begins instep 307. In step 307, the remote control device may determine whether aremote control input has been received. Such an input may be, forexample, generated by the user pressing a button on the remote controldevice while the device is running a remote control application. Theremote control application may have or generate a user interface withvarious buttons (graphical buttons, if the remote control device has atouch-sensitive display) for controlling the controlled device, such asnumeric inputs, volume control, a program guide button, an informationbutton, commands to control playback of content (e.g., play, fastforward, rewind, pause), a record button, etc. FIG. 4 illustrates anexample of such an interface.

If an input has been received, then the application on the remotecontrol device may formulate a remote command message to send to theapplication server 107. The remote command message may be formulated tocontain application program interface (API) values for the variouscommands mentioned above. For example, if the user had entered “250” tochange channels to channel 250, the application may send a messagecontaining the following values: {Sender ID, 1, 250}, where the “SenderID” is an identification of the remote control device, the “1” is thecommand code for a channel tuning function, the “250” is the sourceidentifier for the channel to be tuned. The message may also include anidentifier of the controlled device, which can be useful if the userwishes to use the same remote control device to control multiplecontrolled devices. The message can be sent in any desired format, andadditional data values may be included in the message as well, dependingon the format. For example, the message can be an Internet Protocol (IP)packet, and may have additional values, such as an IP header, frameheader/footer, UDP (User Datagram Protocol) header/footer, etc.

In step 308, the remote device 117 may transmit the command message tothe application server 107, and the application server may process themessage in step 309. Processing the message may include identifying oneor more function routines to be executed in response to the enumeratedcommand code, and providing the parameters to those routines.

In step 310, the application server 107 may transmit a response to theremote device 117. The response may include, for example, messagesand/or images to be displayed for the user, such as a message confirmingthat the command has been received, or containing additional informationabout the channel being watched. Examples of additional responses andfunctionality are discussed further below.

In step 311, the application server 107 may formulate a message to bedelivered to the controlled device to carry out the requested command.In some embodiments, this message may be a push message (e.g., as a UDPpush message). In those embodiments, the application server 107 may sendan Event Execution Request message to a UDP Push server 105. The EventExecution Request message may contain commands that the controlleddevice will accept to carry out the requested operation. In step 312,the push server 105 may then prepare and send a push message addressedto the controlled device, and have it sent by the modem terminationsystem 104 on a downstream data transmission over lines 101.

In step 313, the controlled device may receive the push message, and mayact in response to the command contained therein. For example, if thepush message included an instruction to tune to channel 250, then thecontrolled device may respond by doing just that. Then, in step 314, thecontrolled device may transmit a return message to the central office103 (or to the application server 107) reporting the results of thecommand. This reporting can be a simple confirmation that the commandhas been carried out, or it can be an error report indicating that thecommand was not carried out, with additional information identifying thereason why it could not be carried out. The process may then return tostep 307, and await the next command.

As noted above, the remote control device 117 may have a remote controlapplication installed to offer user control over the controlled device.Such an application can offer a wide variety of functions, not limitedto channel changing and DVR record scheduling. FIG. 4 illustrates anexample user interface for the basic commands of controlling thecontrolled device, with buttons for entering channel numbers, openingand navigating through a program guide, recording, rewinding, pausing,fast-forwarding through a program, managing a DVR recordings list, usinginteractive applications, etc. The application can be written in anyform, such as an HTTP script or Internet application.

FIG. 5 illustrates an example user interface 501. The interface 501 mayinclude various onscreen elements that can be selected using touch (ifdisplayed on a touch-sensitive screen) or via a computer pointer ornavigation highlight. The interface may include a series of selectabletabs 502 which, upon selection, may cause the display of a variety ofdifferent interfaces. Tabs can include a home tab to cause the displayof the interface 501, and other tabs such as a Remote tab to cause thedisplay of the remote control interface (e.g., FIG. 4 ), a Guide tab tocause the display of the program guide (e.g., FIGS. 9 a & 9 c, discussedbelow), a video on demand (VOD) tab to cause the display of a programguide for videos available on demand (FIG. 11 , discussed below), aFavorites tab to cause the display of a listing of favorite channelsand/or programs (e.g., FIG. 12 , discussed below), a Settings tab tocause display of an interface to adjust settings (e.g., FIG. 13 ,discussed below), a recommendations tab to cause display of a listing ofcontent recommendations received from others (e.g., FIG. 14 , discussedbelow), a watch video tab to initiate a redirected stream of requestedvideo to a different display device (e.g., to the remote control deviceitself, or to another location on the Internet, etc.), etc.

The interface may include a display 503 of the title for a program thatis currently being viewed at the controlled device. Informationidentifying the currently viewed program can be sent, for example, inthe response sent to the remote control device in step 310 discussedabove. In the FIG. 5 example, the television show “Jeopardy!” is beingviewed, and upon selection of this item, the user may see an expandedlisting containing additional information about the show, and additionaloptions for the show (e.g., options to record the show, or set a seriesrecording, or find alternate air times for the show, etc.).

FIG. 6 illustrates an example of such an additional display. In thatexample, the selected program “Closing Bell” is displayed with a textdescription. Other options are displayed as well. Those options includean option to begin viewing the selected program. Selecting this optionwould send a command to the application server 107 to, in turn, send acommand to the controlled device to begin tuning and/or decoding theselected program. Other options may be, for example, to set thecurrently selected channel (e.g., “CNBC”, in this example) as a defaultchannel to be the focus the next time the guide is opened, or to be thedefault channel that is tuned or decoded when the user begins to watchtelevision, remove the channel and/or program from the favorites list,record the program, set a series recording to record each episode of theprogram's series, and to recommend the show to friends. Another optionmay allow the user to view additional available content or merchandise,relating to the selected program. FIG. 15 illustrates an example screenthat can offer the user the option of requesting a mailing brochure ofinformation about a program, or a product being discussed in theprogram.

A remote control command may begin with the user selection of the showfrom the interface 501. The remote control device's remote controlapplication may detect this selection, and then formulate a commandmessage (as in step 308 above) identifying the remote control device,the requested function (e.g., additional information and options for aselected program), and the selected program. The server can process andrespond to the message (e.g., steps 309 and 310), replying to the remotecontrol with additional information for the selected program (e.g., itstextual description), and additional control options (e.g., the optionsfor recording, setting a record schedule, etc.). The application server107 can skip the creation of and sending the push message (e.g., steps311-314), if the particular request does not require action or responsefrom the controlled device. If the remote control application isimplemented as a web page at the application server 107, then thecommand may simply be an HTTP command indicating user selection of agraphical interface object on the page, and the response may be anotherweb page.

The interface 501 can also include one or more additional applicationoptions. For example, a social friends list option 504 may result in thedisplay of a listing of a user's friends who are also online. FIG. 7 aillustrates an example of such a “Buddy List” display 701. To supportsuch functionality, the application server 107 (or another centralizedserver on the network 109) may monitor the users who are watching theirtelevisions. The controlled device may be configured to transmit anupstream message to the server 107 when the user begins to view content(e.g., when the user turns on the gateway device, or enters a useridentification to identify him/herself to the gateway). The applicationserver 107 may maintain a record for each unique user, household, orconsumption device, and each record may contain identifiers of otherusers/households/consumption devices that are designated as friends.This friend designation can occur, for example, when a user first signsup for service, or the friends list can be imported from another socialnetwork (e.g., Plaxo, Facebook, Twitter, etc.).

Each listed friend in the display 701 may include a name (or otheridentifier), and an indication of status (e.g., offline, watching“Jeopardy!”, etc.). This status information, which may have beenreported to the application server 107, or other servers associated withsocial networks and accessible by application server 107, as each friendlogged on to begin watching television, may be reported back to theremote control device in step 310, and in response to a user's selectionof the friends list option 504. Selecting or highlighting a listedfriend may cause additional options to appear, such as options to sendthe friend a message, or invite the friend to join in watching thecurrently-viewed program. Sending this kind of request may involve, forexample, delivering a pop-up message to the friend's consumption device(e.g., a gateway, STB, DVR, computer, etc.) in step 309. If the friendaccepts the invitation, then the friend can be added to a chat windowfor the show, as illustrated in FIG. 7 b . The chat window 702 may allowindividuals who are participating in the chat session to type textualmessages, and have those messages delivered (e.g., via Short MessageService, Multimedia Message Service, etc.) in step 309 to other users inthe session. Users can also select a friend, and send an instant messagedirected to the selected friend.

The display may also include an option 703 to invite other members inthe chat session to tune to the same program being watched by thesending user. For example, the user can select the “Invite to Watch”feature, and select some (or all) of the parties to the chat, and theinviting user's remote control device may transmit an invitation commandin step 308. The invitation command may identify the content beingviewed (e.g., a source identifier for “Jeopardy!”), the commandrequested (e.g., the invite command), and identifiers for the users tobe invited (e.g., email addresses, friend codes, etc.). The applicationserver 107 can send invitation messages to the various users (via theirrespective networks, central offices, application servers and/or userdevices, etc.), and those users can be given the option to accept orreject the invitation. Upon accepting the invitation, the acceptinguser's device may automatically tune to the channel or service carryingthe content, and transmit a message to the application server 107 thatthe user has accepted the invite.

Other interactions with friends can be performed as well. For example, auser can choose to recommend a program to a friend, similar to theinvitation to view. A user can also view recommendations that the friendhas sent to the user, or to others. To support this latterfunctionality, the application server 107 may retain a listing ofinvites and/or recommendations that each user has sent in the past (orfor a predetermined amount of time). The recommendations can also comefrom the system, such as from a reviewer associated with the centraloffice 103. FIG. 14 illustrates an example display screen containingrecommendations, which may be categorized (e.g., according to whetherthey are on-demand or linear/broadcast). In some embodiments, systemrecommendations and other recommendations may be optionally retrieved.

As another example, a user can choose to post a rating and/or commentfor a show being watched, by choosing an option from the additionalinformation screen in FIG. 6 . The remote control application maydisplay a text entry interface to allow the user to type a comment, andto choose a rating (e.g., numeric, number of stars, etc.), and thatinformation can be transmitted in step 308 with a command to post theuser's rating for the show. The application server 107 may, in step 309,process this message to add the user's rating to a ratings database. Theuser can also choose to view ratings and comments that have beensupplied by other users for a particular program.

In some embodiments, when a user's friend has turned on or signed in totheir respective gateway/STB/DVR to begin watching a program, thefriend's gateway may transmit a sign-in message to his/her respectiveapplication server, and the application server may send a notificationmessage to the user (e.g., by consulting the friend's own list offriends, and sending a push notification message to an addressassociated with each of the listed friends). The notification messagemay be displayed on the user's remote control device, such as that shownin FIG. 7 c , and can offer the user the option of inviting the friendto join a chat or watch a show.

The user interface 501 may offer other options as well. For example,applications may be loaded to allow access to other servers on thenetwork 109 or another network, such as servers for social networkingwebsites (e.g., Twitter, Facebook), databases (e.g., Wikipedia, InternetMovie DataBase—IMDB), and other information resources (e.g., YouTube,local news station, sports news website). Selecting any one of theseoptions 505 may result in sending a command message in step 308identifying the selected option, and a corresponding processing 309 andresponse 310, examples of which are described below. Since theapplication server 107 may be connected to these resources through thenetwork 109 (e.g., the Internet or another public or local network), awide variety of functionality can be supported.

One example may be to allow a user to access a website. For example,selecting an option 505 for the Twitter application may result intransmitting an HTTP request for the Twitter Internet server (e.g.,“www.twitter.com”). The request may be accompanied by additionalcontextual information, such as the name of a television program beingwatched at the time (e.g., “Jeopardy!”). The server for that applicationmay use the contextual information to conduct a contextual query, andprovide information based on the supplied contextual information. So,for example, for a social RSS (Really Simple Syndication) or ATOMSyndication news feed site like Twitter, the resulting informationsupplied back to the server 107 and to the device 117 may be a listingof RSS feeds relating to the topic of “Jeopardy!”, as illustrated inFIG. 8 . Requests to other sites may result in a search for otherinformation about the particular program, its stars/actors, relatedprograms, etc.

Other contextual information may be supplied as well. For example, ifthe remote control device is equipped with location determiningcapabilities (e.g., via a global positioning system, or with addressinformation keyed to the user), then the location can be included ascontextual information. The location information can be used to generatea location-specific query through an Internet database, for example, tolimit RSS feeds to those originating from within a predetermineddistance (e.g., 5 miles) of the user. In this way, the user can see RSSfeeds that are relevant to the show being watched, and posted byneighbors.

Other websites and applications may be accessed as well. One exampleapplication may be an Internet browser, which may allow the user tobrowse the Internet using the remote control device. In someembodiments, the device may display the remote control interfaces (e.g.,FIG. 5 ) in a window on a part of a display screen, and the browser (orother application interface) can be displayed on other parts of thescreen.

Another option in the screen 501 may be an option 506 to manageapplications appearing in the remote control application. For example,the user could turn on or off individual applications, adjust displaysettings and viewing preferences, etc.

Another option in the screen 501 may be an option to view a programguide, listing available content and their air times, titles, serviceprovider, price, etc. (the guide may itself be the same as, or anextension of, a guide provided by the gateway or STB/DVR 111). FIG. 9 aillustrates an example program guide listing, showing a listing ofcontent. The listing may be scrolled, and by selecting one, the user maybe presented with additional information and options for the selectedlisting, as illustrated in FIG. 9 b . The additional information mayinclude a detailed textual description, and the additional options mayinclude the option to change channels to begin viewing the program(“Watch Now”), set this channel as a default channel for future guidedisplays (e.g., the default channel may be the channel that is initiallydisplayed in the guide, or initially tuned when the gateway/STB/DVR isfirst turned on), save the current program to a list of favoriteprograms (e.g., recording the program and saving it in a favoriteslist), or others. To support such a feature, the application server mayprocess, e.t., at step 309, a message from the remote control devicerequesting a guide listing, and may consult a network database toretrieve listings for the requesting user. The retrieved listings can besupplied as part of the response 310.

The content listings may be manipulated and searched in other ways aswell. For example, the user can choose to view the listings sorted bytitle, genre, sub-genre, combination of genres, description textkeywords, etc. Users can enter text to conduct text searches forprograms by title, actor, description, etc. Services may be added to afavorites list, and the user can view a listing containing just entriesfor services on that favorites list. FIG. 9 c illustrates an exampleguide display that includes a search option that, if selected, candirect the user to a text input interface to allow entry of keywords forsearching, or to a category selection menu to allow selection of othersearch criteria.

In some embodiments, content that is aired as part of multicast orbroadcast transmissions can be separated from content that is availablefor immediate access (e.g., video on demand), or they may be displayedtogether in a combined listing. FIG. 11 illustrates an example listingthat focuses on programs that are available as video on demand programs.In some embodiments, the listings may be personalized for the userand/or device 117. The personalization may be based on a user's storedfavorites list on the application server 107, or on location-basedinformation (e.g., if the device 117 has global positioningcapabilities, the location can be delivered with the command to view theguide listings, and the server 107 may respond by filtering the listingsto only show services that are locally available in the user or device'svicinity). FIG. 12 illustrates an example display containing a listingof the user's favorite programs.

As noted above, the application server 107 may be made aware of tuningcommands entered by a user. This can inform the server 107 of theprogram being viewed, and can be used by the server 107 to selectadvertising information to be supplied to the user. For example, thetuning command may be accompanied by user identification information(e.g., a user name or tag), and the server 107 may store a profiledatabase identifying demographic information for various users of thesystem. Based on the demographic information, and knowledge of theparticular program being watched, the server 107 can choose to insertcertain advertising information into the content (e.g., video insertioninto a television show), or into the user interface (e.g., the displayappearing on the remote device 117). The server 107 can also storeinformation tracking a user's interactive usage, monitoring the types ofapplications he/she runs, how frequently they are run, what uses theyexperience, etc. All activity can be logged, and this information can bereported to external servers, and can also be used to identify andrecommend additional interactive applications that become available,send users alerts to offer additional products and services, etc. Insome embodiments, the user's remote device 117 may receive a pop-updisplay, asking if the user would like to receive additional products,services or information relating to a program being viewed or selectedin the guide, based on the logged information.

In some embodiments, the usage and/or viewing history information may beprocessed to remove unreliable entries. For example, if thegateway/STB/DVR reports that the user was viewing a particular channelfor longer than a predetermined amount of time (e.g., a full day, 2days, etc.), then it is likely that the user simply left the device on,and was not truly watching the entire time. Such unreliable data can beremoved before being included in a report or used.

In some embodiments, the collected usage information can be queried toidentify viewing patterns for multiple users, and/or for a single userover time. These queries can allow even greater levels of customizationand personalization for future delivery of content. The applicationserver 107 (or a more centralized server on the network 109) can exposeadditional APIs to allow third parties to view some or all of the loggeddata. For example, a central office 103 may expose an enumerated commandAPI (or web page) to allow an advertiser to run queries on viewing datafor a given time period, or among a given age/geographic demographic.

In some embodiments, in which multiple central offices may servedifferent groups of users, a centralized pairing server (not shown) maybe connected to a network, and pairing requests from controlled devicesand remote control devices may be automatically directed to thecentralized pairing server. The centralized pairing server may thenhandle the pairing. Indeed, in the example of FIG. 1 , the server 107may be centrally located, or it may be distributed across the varioushomes, such as in the gateway/STB/DVR 111.

In some embodiments, the functionality of the gateway/STB/DVR 111 may beprogrammed into the gateway/STB/DVR 111 via download during manufactureand/or bootup at the user's premises (e.g., the listener application maybe a part of the device's own default operating system, and may even beproprietary to the manufacturer of the device, with only the necessaryAPIs being exposed). In some embodiments, a legacy device (e.g., alegacy STB) may be augmented with the remote control applicationsoftware via an external memory device and control circuit, such as aUniversal Serial Bus dongle. The choice of including the listenerapplication as a default or an upgrade may be based, for example, on theinitial complexity of the device being controlled. A simpler device,such as a home appliance (e.g., air conditioner) might omit suchfunctionality in its default programming, while a more sophisticateddevice (e.g., home security system, gateway, etc.) may include it as adefault.

As noted above, the remote control application interface may allow theuser to set parameters for operation. FIG. 13 illustrates an exampledisplay for this purpose. In the display, the user may have an option1301 to choose which device to control. The interface can list one ormore devices (e.g., gateways, STBs, DVRs, display devices, etc.) thathave undergone the pairing process with the current remote device, andare available for control. For example, the user can initiate the FIG. 3pairing process with a first STB, and then do so again with a DVR in thesame (or different) house. Each pairing may be recorded by theapplication server 107, and the server 107 may allow the user to selectwhich one to control. The second (or subsequent) pairing request canrepeat steps 302-306, with new passphrases generated by the additionaldevice (or devices) that are to be controlled, allowing the user'sremote control device to be paired with multiple content access devices.

Selection of different devices may result in display of differentcommand options, as some options might not be available on otherdevices. For example, trickplay commands (e.g., fast forward, rewind,etc.) might be of no use if the user is controlling a simple set-top boxthat lacks that functionality, so those commands need not appear in theremote control interface if such a simple device is controlled. In someembodiments, such as the program guide example discussed above, theremote device may display user interface elements that are normallygenerated by the gateway or STB/DVR 111 for local display on a connecteddisplay device (e.g., a television, video monitor, etc.). The gateway orSTB/DVR 111 may transmit messages to the server 107 to cause the remotedevice to display suitable displays with which the user can interact,and the remote device can transmit commands (e.g., the example commandsdiscussed above, or others) to the gateway or STB/DVR 111 (e.g., via theserver 107) to report back results of user interaction (e.g., a tuningcommand to tune to the program the user chose from the program guide).In this manner, and if desired, the remote device 117 may be used as ashortcut to bypass some of the interaction with the gateway or STB/DVR111 (e.g., if, for example, finding and choosing a program is easierusing the device 117 than the STB's onscreen program guide). In such anembodiment, the various commands being sent from the remote controldevice may further include information identifying the controlled devicefor which the command was intended.

Other settings options may include a text box 1302 to use when enteringa passphrase in step 305. A “nickname” option may allow the user toenter a custom name for the device, for ease of reference and display inthe device selection option 1301. The settings options may also allowentry 1303 of other parameters, such as IP address locations forconfiguration files (e.g., schema locations), or parameters used forother websites or networks (e.g., usernames for social websites, cellphone number, etc.). For example, FIG. 13 illustrates a nickname of “DevSTB” for one device. If the user had previously paired the remote devicewith other devices, the user can have provided nicknames for each ofthose other devices as well, such that the list could include otherdevices, such as “Bedroom DVR” and “Kitchen TV”, etc.

The information and options that are made available to the user on theremote application interface may be customized, as discussed above. Thiscustomization can also be performed automatically, such as during thepairing process. For example, once a remote control device is paired,the application server 107 may access account information associate withthe paired controlled device (or user), and can use that information topull guide information, channel lineups, service entitlements, parentalcontrols, personal preferences, etc. from one or more databases based onthe identity of the paired controlled device or user. So, for example,if the application server 107 knows that a given user's DVR is a digitalDVR with HD (high definition) capability, the application server 107 canprovide guide information that includes HD listings.

In some embodiments, the application server 107 and/or remote controlapplication may allow a user to upload applications that the user haswritten, to add the application functionality to the remote controlinterface. This addition may be the introduction of a simple RSS feedcreated by the user, or it can be more complex.

In some embodiments, third parties may use the enumerated command API tosend messages to their own customers, without requiring their own EBIFapplication on each controlled device. For example, a third party'sserver (not shown) may connect to the Internet (e.g., network 109 orother network), and transmit a request to application server 107 to havemessages displayed on users' STBs. The message can be a simple HTTPpacket containing the enumerated command parameters discussed above. Itcan also be a simple selection from a web page offered by theapplication server 107.

The pairing request in step 302 may be originated by the controlleddevice, for example, upon initialization. Similarly, the pairing requestcan also be originated by the remote control device 117. FIG. 16illustrates an example of this remote-initiated pairing. In step 1601,the user may use the remote control device and log in to the applicationserver 107 by providing, for example, a user identification, password,and remote control device identification, and request to initializepairing. The request, as with the step 302 example, can be automaticallyperformed upon the user's initial log in to the system, or it can beperformed upon the user's request.

In step 1602, the application server 107 may retrieve apreviously-stored listing of devices that are associated with the user'saccount. For example, the user may have previously created an account tosupply one or more gateway/STB/DVRs 111 with access to content, and indoing so the application server 107 may have stored a listing of thesedevices for the particular user. The listing may identify the devices,for example, by a unique device address (e.g., a MAC address) and/orlogical address (e.g., an IP address assigned to the device). Thosedevices may already have been authorized for access to content providedby the application server 107, and the server 107 may already haveidentification information from the remote control device through thelog-in process, so the pairing of remote control device to the variousapproved devices may automatically be performed upon the user's log inwith the device. For example, the simple act of logging in may result inthe application server 107 storing an authorized pairing of the remotecontrol device to each of the registered devices of the user.

The pairing process may include a nicknaming process such as thatdescribed above in FIG. 13 . To help the user and application server 107coordinate the nicknaming, in step 1603, the application server 107 maytransmit messages to each of the user's controlled devices, and cantransmit a message to the remote control device, listing theknown/registered devices by their default/current name (the default orcurrent names may be any desired label or handle used to identify thedevices), along with the messages being sent to each. The messages maybe unique to each device, and may be any desired phrase, such as thePass Phrase shown in FIG. 10 b . By viewing the messages displayed on orby the gateway/STB/DVR 111, the user can then identify the devices andrename them to a more suitable name.

FIG. 17 illustrates an example screen that may be displayed on remotecontrol device for this purpose. The screen may include listings 1701,with the default names (e.g., “STB1”, “STB2” and “DVR1”) and themessages being sent to each (e.g., “Welcome to Xfinity”, “Today isWednesday” and “Comcast”). Seeing these messages displayed on thecorresponding devices (gateway/STB/DVR 111), the user can then associatethe default names with the actual devices, and can rename them asdesired. So, for example, the user could tap on one of the listeddevices in FIG. 17 , and enter a new name (e.g., “STB1” can be renamedto “Living Room TV”).

The above discussed embodiments are simply examples, and modificationsmay be made as desired for different implementations. For example, stepsand/or components may be subdivided, combined, rearranged, removedand/or augmented as desired. Also, although an EBIF example isdiscussed, the control plane protocol can be in any desired protocol,such as OCAP (OpenCable Application Platform), DTA, GoogleTV, etc.Additional features may be added.

The attached Appendix A contains example source code listings forvarious features described herein.

APPENDIX A

The following listing is an example XML schema listing for the listenerapplication, which can be executed on the gateway/STB/DVR 111:

<xs:schema xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:mac=“http://location/data-types”xmlns:xs=“http://www.w3.org/2001/XMLSchema” elementFormDefault=“qualified”  attributeFormDefault=“unqualified”> <xs:import namespace=“http://location/data-types”schemaLocation=“data-types-3.2.xsd”/> <!--  Code Values are:   DisplayAlert = 0    param 1 = headline    param 2 = story   Tune to Source ID =1    param 1 = source id   Load VOD = 2    param 1 = provider id   param 2 = asset id   Set DVR Recording = 3    param 1 = source id   param 2 = start time (GMT)   Set DVR Series Recording = 4    param 1= source id    param 2 = start time (GMT)    param 3 = series id --> <xs:element name=“data”>   <xs:complexType>    <xs:sequence>    <xs:element name=“alert-trig” type=“alert-trig-format”/>   </xs:sequence>   </xs:complexType>  </xs:element>  <xs:complexTypename=“alert-trig-format”>   <xs:sequence>    <xs:element name=“row”>    <xs:complexType>      <xs:sequence>       <xs:element name=“code”type=“mac:int16”/>       <xs:element name=“param1” type=“mac:mixed-string”/>       <xs:element name=“param2” type=“mac:mixed- string”/>      <xs:element name=“param3” type=“mac:mixed- string”/>     </xs:sequence>     </xs:complexType>    </xs:element>  </xs:sequence>  </xs:complexType> </xs:schema>

The following listing is an example XML file to support the listenerapplication:

  <?xml version=“1.0” encoding=“UTF-8” ?> - <macxmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>  <varname=“trig-index” type=“int”>−1</var>  <var name=“alert-display-level”type=“int”>0</var>  <var name=“CODE_DISPLAY_ALERT” type=“int”>0</var> <var name=“CODE_TUNE_TO_SOURCE_ID” type=“int”>1</var>  <varname=“CODE_LOAD_VOD” type=“int”>2</var>  <varname=“CODE_SET_DVR_RECORDING” type=“int”>3</var>  <varname=“CODE_SET_DVR_SERIES_RECORDING” type=“int”>4</var>  <varname=“intVar1” type=“int”>0</var>  <var name=“intVar2”type=“int”>0</var>  <var name=“channelLocator” type=locator” /> - <pagestyle=“style-transparent” onload=“call(Init)”>   - <!--   FIRES WHEN UDPTRIGGER IS SENT TO APP   -->  <triggerevent format=“alert-trig”action=“call(ConsumeTrigger)” />  <timer name=“hide-alert-timer”period=“20000” loop=“1”    ontimer=“call(HandleHideAlertTimer)” /> -<keymap>  <keypress keycode=“KEY_YELLOW” action=“call(DisplayHeadline)”/>  <keypress keycode=“KEY_RED” action=“call(DisplayInfo)” />  </keymap>  <text name=“alert_headline” x=“110” y=“400” width=“500”height=“26” style=“style-alert”    hidden=“true” />  <textname=“alert_story” x=“110” y=“348” width=“500” height=“78”multiline=“true”    style=“style-alert2” hidden=“true” />  <imagename=“alert_img” x=“70” y=“394” width=“32” height=“32” src=“alert_png”   hidden=“true” /> - <sub name=“ConsumeTrigger”>  <actionvalue=“debug(in ConsumeTrigger); resume( )” /> - <if>  <testlhs=“$trig-index” expr=“gt” rhs=“−1” />   - <!--   CLEAR OUT THE TRIGGERTABLE   -->  <action value=“deletetriggerrow($$alert-trig, 0);sub($trig-index, 1)” />   </if>   - <!--   ASSIGN PASSED TRIG VALUES TOLOCAL VARS   -->  <action value=“add($trig-index,1); debug(Alert code is$$alert-trig[$trig-index].code)” /> - <if>  <testlhs=“$$alert-trig[trig-index].code” rhs=“$CODE_DISPLAY_ALERT” expr=“eq”/>  <action value=“call(HandleDisplayAlert)” />   </if> - <elseif> <test lhs=“$$alert-trig[$trig-index].code”rhs=“$CODE_TUNE_TO_SOURCE_ID” expr=“eq” />  <actionvalue=“call(HandleTuneToSourceID)” />   </elseif> - <elseif>  <testlhs=“$$alert-trig[$trig-index].code” rhs=“$CODE_LOAD_VOD” expr=“eq” /> <action value=“call(HandleLoadVOD)” />   </elseif> - <elseif>  <testlhs=“$$alert-trig[$trig-index].code” rhs=“$CODE_SET_DVR_RECORDING”expr=“eq”   />  <action value=“call(HandleSetDVRRecording)” />  </elseif> - <elseif>  <test lhs=“$$alert-trig[$trig-index].code”rhs=“$CODE_SET_DVR_SERIES_RECORDING”    expr=“eq” />  <actionvalue=“call(HandleSetDVRSeriesRecording)” />   </elseif>   </sub> - <subname=“HandleDisplayAlert”>  <action value=“debug(in HandleDisplayAlert);set(@alert_headline.text, $$alert-trig[$trig-    index].param1);set(@alert_story.text, $$alert-trig[$trig-index].param2);   set(@alert_img.hidden, false); redraw(@alert_img);start(@hide-alert-timer)” />   </sub> - <subname=“HandleTuneToSourceID”>  <action value=“debug(‘inHandleTuneToSourceID, source id = $$alert-trig[$trig-index].param1’);   stringconvert($intVar1, $$alert-trig[$trig-index].param1);set($channelLocator,‘tv-source-    id://$intVar1’);selectservice($channelLocator); call(CheckSelectServiceError)” /> </sub> - <sub name=“HandleLoadVOD”>  <action value=“debug(‘inHandleLoadVOD, provider = $$alert-trig[$trig-index].param1, asset =   $$alert-trig[$trig-index].param2’); set($vodTarget,vod://$$alert-trig[$trig-   index].param1/$$alert-trig[$trig-index].param2?i=1); load(vod-vwr)”/>   </sub> - <sub name=“HandleSetDVRRecording”>  <actionvalue=“debug(‘in HandleSetDVRRecording, source =$$alert-trig[$trig-index].param1,    start time =$$alert-trig[$trig-index].param2’);set($channelLocator,tv-source-id://$$alert-   trig[$trig-index].param1); stringconvert($intVar1,$$alert-trig[$trig-index].param2);    setrecord($channelLocator,$intVar1)” />   </sub> - <sub name=“HandleSetDVRSeriesRecording”> <action value=“debug(‘in HandleSetDVRSeriesRecording, source =$$alert-trig[$trig-    index].param1, start time =$$alert-trig[$trig-index].param2, series = $$alert-trig[$trig-   index].param3’);set($channelLocator,tv-source-id://$$alert-trig[$trig-index].param1);   stringconvert($intVar1, $$alert-trig[$trig-index].param2);stringconvert($intVar2, $$alert-    trig[$trig-index].param3);setrecord($channelLocator, $intVar1, $intVar2)” />   </sub> - <subname=“Init”>  <action value=“debug(in MyAlerts Init)” />  <actionvalue=“call(DisplayInfo)” />   </sub> - <sub name=“DisplayInfo”> <action value=“debug(in DisplayInfo)” />  <actionvalue=“stop(@hide-alert-timer)” />   - <!--   restart timer to delayhiding of widget   -->  <action value=“set(@alert_headline.text,MyAlerts 1.0); set(@alert_headline.hidden,    false);redraw(@main)” /> <action value=“start(@hide-alert-timer)” />   </sub> - <subname=“DisplayHeadline”>  <action value=“debug(‘in DisplayHeadline, level= $alert-display-level’)” />  <action value=“stop(@hide-alert-timer)” />  - <!--   restart timer to delay hiding of widget   --> - <if>  <testlhs=“$alert-display-level” expr=“lt” rhs=“1” />   - <!--   DisplayHeadline   -->  <action value=“set(@alert_img.hidden,false);set(@alert_headline.hidden,    false);redraw(@main);set($alert-display-level, 1)” >   </if> - <elseif>  <testlhs=“$alert-display-level” expr=“lt” rhs=“2” />   - <!--   DisplayHeadline   -->  <action value=“set(@alert_img.hidden,false);set(@alert_story.hidden, false);redraw(@main);   set($alert-display-level, 2)” >   </elseif> - <elseif>  <testlhs=“$alert-display-level” expr=“lt” rhs=“3” />   - <!--   Hide   --> <action value=“call(HandleHideAlertTimer)” />   </elseif>  <actionvalue=“start(@hide-alert-timer)” />   </sub> - <subname=“HandleHideAlertTimer”>  <action value=“debug(inHandleHideAlertTimer)” />  <action value=“set(@alert_img.hidden, true);set(@alert_headline.hidden, true);    set(@alert_story.hidden, true);set($alert-display-level, 0); stop(@hide-alert-timer);    redraw(@main)”/>   </sub> - <sub name=“CheckSelectServiceError”>  <actionvalue=“debug(checkSelectServiceError: Error = #client.rv);” /> - <if> <test lhs=“#client.rv” expr=“eq” rhs=“0” />  <actionvalue=“debug(checkSelectServiceError: error occurred while selectingservice);    set(@alert_headline.text, Error tuning to source$$alert-trig[$trig-index].param1);    set(@alert_headline.hidden,false); redraw(@main); start(@hide-alert-timer)” />   </if> - <else> <action value=“debug(checkSelectServiceError: request successful);” />  </else>   </sub>   </page>   </mac>

The following is an example XML listing for a remote controlapplication:

  <?xml version=“1.0” encoding=“UTF-8” ?> - <macxmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>  <twowaytablename=“registerSettopData” format=“registerSettopData” />   - <!--  DEFINES   -->  <var name=“PASS_PHRASE_GENERATED” type=“int”>0</var> <var name=“SETTOP_REGISTERED” type=“int”>0</var>  <var name=“intVar1”type=“int”>0</var>  <var name=“intVar2” type=“int”>0</var>  <varname=“counter” type=“int”>0</var>  <var name=“alphaChar”type=“stringcopy” length=“2” />  <var name=“passPhrase”type=“stringcopy” length=“6” />  <var name=“step1Instructions”type=“string”>Enabling your My Remote application is easy.    Step 1 isto generate a unique Pass Phrase. This phrase is used to pair yourremote with your    settop and is valid for 30 minutes.</var>  <varname=“step2Instructions” type=“string”>Step 2 is to register yoursettop. This will pair your    settop with the unique Pass Phrasegenerated in Step 1.</var>  <var name=“step3Instructions”type=“string”>Congratulations! Your settop is now registered.    Step 3is to enter your unique Pass Phrase generated in Step 1 into the pairingscreen of the    My Remote application.</var>  <varname=“failedPostMessage” type=“string”>We are unable to register yoursettop at this time.    Please try again later.</var>  <arrayname=“alphaArray” type=“string” length=“26” /> - <pagestyle=“style-black-bkg” onappstatechange=“call(AppStateChangeHandler)”   onchannelchange=“terminate( )”>  <text name=“sr_title” x=“140” y=“50”height=“40” width=“568” style=“style-title-text”>My    Remote - RegisterSettop</text> - <container name=“menu_buttons_container” x=“0” y=“92”height=“172” width=“270”    style=“style-black-bkg”>  <rectname=“menuTopCinemaBar” x=“0” y=“0” height=“20” width=“270”style=“style-    unfocused-cinema-bar” />  <image name=“sr_img” x=“0”y=“20” width=“270” height=“146” src=“social_remote_img” />  <rectname=“menuBottomCinemaBar” x=“0” y=“166” height=“6” width=“270”style=“style-    unfocused-cinema-bar” />   </container> - <containername=“main_window_container” x=“270” y=“92” height=“172” width=“434”   style=“style-black-bkg”>  <navmap focus=“@btnGeneratePassPhrase” /> <rect name=“mainTopCinemaBar” x=“4” y=“0” height=“20” width=“430”style=style-focused-    cinema-bar” />  <rect name=“mainLeftBorder”x=“0” y=“0” height=“172” width=“4” style=“style-unfocused-   cinema-bar” />  <button name=“btnGeneratePassPhrase” x=“10” y=“30”height=“30” width=“300” style=“style-    menu-black-button”onclick=“call(GeneratePassPhrase)”>Step 1 - Generate Pass   Phrase</button>  <text name=“rs_pass_phrase_lbl” x=“30” y=“72”height=“26” width=“180” style=“style-grey-    text”>Your Pass Phraseis:</text>  <text name=“rs_pass_phrase” x=“220” y=“72” height=“26”width=130” style=“style-white-    text”>$passPhrase</text>  <buttonname=“btnRegisterSettop” x=“10” y=“112” height=“30” width=“300”disabled=“true”    style=“style-menu-black-button”onclick=“call(RegisterSettop)”>Step 2 - Register    Settop</button> <rect name=“mainBottomCinemaBar” x=“0” y=“166” height=“6” width=“434”style=“style-    unfocused-cinema-bar” />   </container>  <textname=“rs_instructions” x=“50” y=“286” height=“208” width=“568”multiline=“true”   style=“style-instructional-text”>$step1Instructions</text> - <formname=“registerSettopForm”target=“RegisterSettopServer/iphone/addPassPhrase.jsp”   twowaytable-ref=“registerSettopData” loadingbar=“true”   onsuccess=“call(HandleSuccessfulRegisterSettopPost)”   onfailure=“call(HandleFailedRegisterSettopPost)”>  <itemwidget=“@macAddressHidden” />  <item widget=“@passPhraseHidden” />  </form>  <hidden name=“macAddressHidden” submit-name=“mac”value=“#client.uid” />  <hidden name=“passPhraseHidden”submit-name=“passPhrase” value=“passPhrase” />    - <!--    setfocus(@main_window_container);     set(@btnRegisterSettop.disabled,    true);   --> - <subname=“AppStateChangeHandler”>  <action value=“debug(InAppStateChangeHandler)” /> - <if>  <testlhs=“#client.event-property.new-state” expr=“eq” rhs=“3” />   - <!--  If entering running state   -->  <actionvalue=“debug(Initializing...); set($passPhrase, ”);set(@rs_instructions.text,    $step1Instructions);setfocus(@btnRegisterSettop); set($alphaArray[0], A);   set($alphaArray[1], B); set($alphaArray[2], C); set($alphaArray[3],D); set($alphaArray[4],    E); set($alphaArray[5], F);set($alphaArray[6], G); set($alphaArray[7], H);    set($alphaArray[8],I); set($alphaArray[9], J); set($alphaArray[10], K);set($alphaArray[11],    L); set($alphaArray[12], M);set($alphaArray[13], N); set($alphaArray[14], O);   set($alphaArray[15], P); set($alphaArray[16], Q);set($alphaArray[17], R);    set($alphaArray[18], S);set($alphaArray[19], T); set($alphaArray[20], U);   set($alphaArray[21], V); set($alphaArray[22], W);set($alphaArray[23], X);    set($alphaArray[24], Y);set($alphaArray[25], Z)” />   </if>   </sub> - <subname=“GeneratePassPhrase”>  <action value=“debug(In GeneratePassPhrase);call(BuildRandomNumber);    set(@btnRegisterSettop.disabled, false);setfocus(@btnRegisterSettop);    set(@rs_instructions.text,$step2Instructions); redraw(@SocialRemote)” />   </sub> - <subname=“BuildRandomNumbee>  <action value=“debug(In BuildRandomNumber);set($counter, 0); set($passPhrase, ”)” /> - <loop> - <if>  <testlhs=“$counter” expr=“gt” rhs=“5” />  <break />   </if>  <actionvalue=“add($counter, 1); rand($intVar1, 1, 35)” /> - <if>  <testlhs=“$intVar1” expr=“gt” rhs=“26” />   - <!--   27 - 35 is for numericvalues   -->  <action value=“sub($intVar1, 26);stringconvert($alphaChar, $intVar1)” />   </if> - <else>   - <!--   1 -26 - is for alpha values   -->  <action value=“set($alphaChar,$alphaArray[$intVar1])” />   </else>  <actionvalue=“stringappend($passPhrase, $alphaChar)” />   </loop>   </sub> -<sub name=“RegisterSettop”>  <action value=“debug(In RegisterSettop,submitting data); submit(@registerSettopForm)” />   </sub> - <subname=“HandleSuccessfulRegisterSettopPost”>  <action value=“debug(inHandleSuccessfulRegisterSettopPost); set(@rs_instructions.text,   $step3Instructions); redraw(@SocialRemote)” />   </sub> - <subname=“HandleFailedRegisterSettopPost”>  <action value=“debug(inHandleFailedRegisterSettopPost); set(@rs_instructions.text,   $failedPostMessage); redraw(@SocialRemote)” />  </sub>  </page> </mac>

The following is an example XML file for a video on demand viewerapplication:

- <mac xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”   xsi:noNamespaceSchemaLocation=“http://location/mac-3.1.xsd”>  <varname=“vodLocator” type=“locator” />  <var name=“vodTarget” type=“string”length=“200” />    - <!--     VOD Icons     Pause  &#xF005;    Rewind &#xF006;     FP    &#xF007;     Play  &#x25BA; Large    Play  &#x25B6;     ON Demand &#xF016;   --> - <page x=“14” y=“0”style=“style-transparent” onload=“call(VodInit)”   onerror=“set(#client.event-property.default-canceled,1);call(OnErrorHandler)”   onvideostatechange=“set(#client.event-property.default-canceled,   1);call(OnVideoStateHandler);”>  <rect name=“vodTrick” x=“500”y=“390” height=“42” width=“100” hidden=“true” style=“style-   vod-trick” />  <text name=“onDemandLabel” x=“514” y=“396” height=“30”width=“30” hidden=“true”    style=“style-vod-trick-label”>□</text> <text name=“vodTrickLabel” x=“558” y=“396” height=“30” width=“38”hidden=“true”    style=“style-vod-trick-label” />    - <!--     <rectname=“vodTrick” x=“500” y=“390” height=“50” width=“100”    style=“style-vod-trick”/>     <text name=“onDemandLabel” x=“10”y=“10” height=“30” width=“30”    style=“style-vod-trick-label”>&#xF016;</text>     <textname=“vodTrickLabel” x=“54” y=“10” height=“30” width=“38”    style=“style-vod-trick-label”></text>     <containername=“vodTrickContainer” x=“500” y=“390” height=“50”     width=“100”hidden=“false”>      <rect name=“vodTrick” x=“500” y=“390” height=“50”    width=“100” style=“style-vod-trick”/>      <textname=“onDemandLabel” x=“10” y=“10” height=“30”     width=“30”style=“style-vod-trick-label”>&#xF016;</text>      <textname=“vodTrickLabel” x=“54” y=“10” height=“30”     width=“38”style=“style-vod-trick-label”></text>     </container>   --> - <subname=“VodInit”>  <action value=“debug(VodInit);” /> - <if>  <testlhs=“$vodTarget” expr=“ne” rhs=“” />  <action value=“set($vodLocator,$vodTarget); selectservice($vodLocator)” />   </if> - <else>  <actionvalue=“load(main)” />   </else>   </sub> - <sub name=“OnErrorHandler”> <action value=“debug(in OnErrorHandler: VOD Error =#client.event-property.error-code);    load(main)” />   </sub> - <subname=“OnVideoStateHandler”>  <action value=“debug(InOnVideoStateHandler, Change = #client.event-property.video.change-   type)” /> - <if>  <testlhs=“#client.event-property.video.change-type” rhs=“end-of-stream”expr=“eq” />  <action value=“videocontrol(stop, normal);” />   </if> -<elseif>  <test lhs=“#client.event-property.video.change-type” expr=“eq”rhs=“end-of-segment” />  <action value=“debug(PLAY VIDEO -end-of-segment)” />   </elseif> - <elseif>  <testlhs=“#client.event-property.video.change-type” expr=“eq”rhs=“end-of-skip” />  <action value=“debug(PLAY VIDEO - end-of-skip)” />  </elseif> - <elseif>  <testlhs=“#client.event-property.video.change-type” expr=“eq”rhs=“terminated” />  <action value=“debug(calling load Main due to VODtermination); call(HideTrickLabels);    load(main)” />   </elseif> -<elseif> - <or>  <test lhs=“#client.event-property.video.change-type”expr=“eq” rhs=“mode” />  <testlhs=“#client.event-property.video.change-type” expr=“eq” rhs=“rate” />  </or>  <action value=“debug(PLAY VIDEO - mode or rate change - rate =#client.event-    property.video.rate - mode =#client.event-property.video.mode);    call(HandleModeOrRateChange)” />  </elseif>   </sub> - <sub name=“HandleModeOrRateChange”>  <actionvalue=“debug(in HandleModeOrRateChange)” /> - <if>  <testlhs=“#client.event-property.video.rate” rhs=“pause” expr=“eq” /> <action value=“debug(rate =pause)” />  <actionvalue=“);call(ShowTrickLabels)□set(@vodTrickLabel.text, ” />   </if> -<elseif>  <test lhs=“#client.event-property.video.rate” rhs=“normal”expr=“eq” />  <action value=“debug(rate = normal)” />  <actionvalue=“call(HideTrickLabels)” />   </elseif> - <elseif> - <and>  <testlhs=“#client.event-property.video.rate” rhs=“fast1” expr=“eq” />  <testlhs=“#client.event-property.video.mode” rhs=“play-forward” expr=“eq” />  </and>  <action value=“debug(mode = play-forward, rate = fastl)” /> <action value=“);call(ShowTrickLabels)□set(@vodTrickLabel.text, ” />  </elseif> - <elseif> - <and>  <testlhs=“#client.event-property.video.rate” rhs=“fast1” expr=“eq” />  <testlhs=“#client.event-property.video.mode” rhs=“play-reverse” expr=“eq” />  </and>  <action value=“debug(mode = play-reverse, rate =fastl)” /> <action value=“);call(ShowTrickLabels)□set(@vodTrickLabel.text, ” />  </elseif> - <elseif>  <test lhs=“#client.event-property.video.mode”rhs=“skip-forward” expr=“eq” />  <action value=“debug(mode =skip-forward)” />   </elseif> - <elseif>  <testlhs=“#client.event-property.video.mode” rhs=“skip-reverse” expr=“eq” /> <action value=“debug(mode = skip-reverse)” />   </elseif> - <elseif> <test lhs=“#client.event-property.video.mode” rhs=“stop” expr=“eq” /> <action value=“debug(mode = stop)” />   </elseif>   </sub> - <subname=“HandleRateChange”>  <action value=“debug(in HandleRateChange)”/> - <if>  <test lhs=“#client.event-property.video.rate” rhs=“pause”expr=“eq” />  <actionvalue=“s);call(ShowTrickLabels)□et(@vodTrickLabel.text, ” />   </if> -<elseif>  <test lhs=“#client.event-property.video.rate” rhs=“normal”expr=“eq” />  <action value=“call(HideTrickLabels)” />   </elseif> -<elseif>  <test lhs=“#client.event-property.video.rate” rhs=“fast1”expr=“eq” />  <actionvalue=“);call(ShowTrickLabels)□set(@vodTrickLabel.text, ” />   </elseif>  </sub> - <sub name=“HandleModeChange”>  <action value=“debug(inHandleModeChange)” /> - <if>  <testlhs=“#client.event-property.video.mode” rhs=“play-forward” expr=“eq” /> <action value=“debug(play-forward)” />    - <!--       <actionvalue=“set(@vodTrickLabel.text,    &#xF007;);call(ShowTrickLabels)” />  -->   </if> - <elseif>  <test lhs=“#client.event-property.video.mode”rhs=“play-reverse” expr=“eq” />  <action value=“debug(play-reverse)” /> <action value=“);call(ShowTrickLabels)□set(@vodTrickLabel.text, ” />  </elseif> - <elseif>  <test lhs=“#client.event-property.video.mode”rhs=“skip-forward” expr=“eq” />  <action value=“debug(skip-forward)” />  </elseif> - <elseif>  <test lhs=“#client.event-property.video.mode”rhs=“skip-reverse” expr=“eq” />  <action value=“debug(skip-reverse)” />  </elseif> - <elseif>  <test lhs=“#client.event-property.video.mode”rhs=“stop” expr=“eq” />  <action value=“debug(stop);call(HideTrickLabels)” />   </elseif>   </sub> - <subname=“HideTrickLabels”> - <if>  <test lhs=“@vodTrick.hidden” rhs=“false”expr=“eq” />  <action value=“set(@vodTrick.hidden, true);set(@onDemandLabel.hidden, true);    set(@vodTrickLabel.hidden, true);redraw(vod-vwr)” />   </if>   </sub> - <sub name=“ShowTrickLabels”> -<if>  <test lhs=“@vodTrick.hidden” rhs=“true” expr=“eq” />  <actionvalue=“set(@vodTrick.hidden, false); set(@onDemandLabel.hidden, false);   set(@vodTrickLabel.hidden, false); redraw(vod-vwr)” />   </if>  </sub>   </page>   </mac>

The following is an example UDP message that can be used as describedabove:

 package com.comcastmediacenter.hits.axis.messaging.udp;  public classUdpMessage implements java.io.Serializable {   private java.lang.Stringmac;   private short appId;   private int orgId;   private inttriggerId;   private java.lang.String xml;   privateorg.apache.axis.types.URI xmlURL;   private java.lang.String schema;  private org.apache.axis.types.URI schemaURL;   public UdpMessage( ) {  }   public UdpMessage(    java.lang.String mac,    short appId,    intorgId,    int triggerId,    java.lang.String xml,   org.apache.axis.types.URI xmlURL,    java.lang.String schema,   org.apache.axis.types.URI schemaURL) {    this.mac = mac;   this.appId = appId;    this.orgId = orgId;    this.triggerId =triggerId;    this.xml = xml;    this.xmlURL = xmlURL;    this.schema =schema;    this.schemaURL = schemaURL;   }   /**    * Gets the mac valuefor this UdpMessage.    *    * @return mac    */   publicjava.lang.String getMac( ) {    return mac;   }   /**    * Sets the macvalue for this UdpMessage.    *    * @param mac    */   public voidsetMac(java.lang.String mac) {    this.mac = mac;   }   /**    * Getsthe appId value for this UdpMessage.    *    * @return appId    */  public short getAppId( ) {    return appId;   }   /**    * Sets theappId value for this UdpMessage.    *    * @param appId    */   publicvoid setAppId(short appId) {    this.appId = appId;   }   /**    * Getsthe orgId value for this UdpMessage.    *    * @return orgId    */  public int getOrgId( ) {    return orgId;   }   /**    * Sets theorgId value for this UdpMessage.    *    * @param orgId    */   publicvoid setOrgId(int orgId) {    this.orgId = orgId;   }   /**    * Getsthe triggerId value for this UdpMessage.    *    * @return triggerId   */   public int getTriggerId( ) {    return triggerId;   }   /**    *Sets the triggerId value for this UdpMessage.    *    * @param triggerId   */   public void setTriggerId(int triggerId) {    this.triggerId =triggerId;   }   /**    * Gets the xml value for this UdpMessage.    *   * @return xml    */   public java.lang.String getXml( ) {    returnxml;   }   /**    * Sets the xml value for this UdpMessage.    *    *@param xml    */   public void setXml(java.lang.String xml) {   this.xml = xml;   }   /**    * Gets the xmlURL value for thisUdpMessage.    *    * @return xmlURL    */   publicorg.apache.axis.types.URI getXmlURL( ) {    return xmlURL;   }   /**   * Sets the xmlURL value for this UdpMessage.    *    * @param xmlURL   */   public void setXmlURL(org.apache.axis.types.URI xmlURL) {   this.xmlURL = xmlURL;   }   /**    * Gets the schema value for thisUdpMessage.    *    * @return schema    */   public java.lang.StringgetSchema( ) {    return schema;   }   /**    * Sets the schema valuefor this UdpMessage.    *    * @param schema    */   public voidsetSchema(java.lang.String schema) {    this.schema = schema;   }   /**   * Gets the schemaURL value for this UdpMessage.    *    * @returnschemaURL    */   public org.apache.axis.types.URI getSchemaURL( ) {   return schemaURL;   }   /**    * Sets the schemaURL value for thisUdpMessage.    *    * @param schemaURL    */   public voidsetSchemaURL(org.apache.axis.types.URI schemaURL) {    this.schemaURL =schemaURL;   }   private java.lang.Object __equalsCalc = null;   publicsynchronized boolean equals(java.lang.Object obj) {    if (!(objinstanceof UdpMessage)) return false;    UdpMessage other = (UdpMessage)obj;    if (obj == null) return false;    if (this == obj) return true;   if (__equalsCalc != null) {     return (__equalsCalc == obj);    }   __equalsCalc = obj;    boolean _equals;    _equals = true &&    ((this.mac==null && other.getMac( )==null) ||      (this.mac!=null&&      this.mac.equals(other.getMac( )))) &&     this.appId ==other.getAppId( ) &&     this.orgId == other.getOrgId( ) &&    this.triggerId == other.getTriggerId( ) &&     ((this.xml==null &&other.getXml( )==null) ||      (this.xml!=null &&     this.xml.equals(other.getXml( )))) &&     ((this.xmlURL==null &&other.getXmlURL( )==null) II      (this.xmlURL!=null &&     this.xmlURL.equals(other.getXmlURL( )))) &&     ((this.schema==null&& other.getSchema( )==null) ||      (this.schema!=null &&     this.schema.equals(other.getSchema( )))) &&    ((this.schemaURL==null && other.getSchemaURL( )==null) ||     (this.schemaURL!=null &&     this.schemaURL.equals(other.getSchemaURL( ))));    __equalsCalc =null;    return _equals;   }   private boolean __hashCodeCalc = false;  public synchronized int hashCode( ) {    if (__hashCodeCalc) {    return 0;    }    __hashCodeCalc = true;    int _hashCode = 1;    if(getMac( ) != null) {     _hashCode += getMac( ).hashCode( );    }   _hashCode += getAppId( );    _hashCode += getOrgId( );    _hashCode+= getTriggerId( );    if (getXml( ) != null) {     _hashCode += getXml().hashCode( );    }    if (getXmlURL( ) !=null) {     hashCode+30=getXmlURL( ).hashCode( );    }    if (getSchema( ) != null) {    _hashCode += getSchema( ).hashCode( );    }    if (getSchemaURL( )!= null) {     _hashCode += getSchemaURL( ).hashCode( );    }   __hashCodeCalc = false;    return _hashCode;   }   // Type metadata  private static org.apache.axis.description.TypeDesc typeDesc =    neworg.apache.axis.description.TypeDesc(UdpMessage.class, true);  static {  typeDesc.setXmlType(newjavax.xml.namespace.QName(“http://location/udp” , “>UdpMessage”));  org.apache.axis.description.ElementDesc elemField = neworg.apache.axis.description.ElementDesc( );  elemField.setFieldName(“mac”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “mac”));  elemField.setXmlType(newjavax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”,“string”));   elemField.setNillable(false);  typeDesc.addFieldDesc(elemField);   elemField = neworg.apache.axis.description.ElementDesc( );  elemField.setFieldName(“appId”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “appId”));  elemField.setXmlType(new javax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”, “short”));  elemField.setNillable(false);   typeDesc.addFieldDesc(elemField);  elemField = new org.apache.axis.description.ElementDesc( );  elemField.setFieldName(“orgId”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “orgId”));  elemField.setXmlType(newjavax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”, “int”)) ;  elemField.setNillable(false);   typeDesc.addFieldDesc(elemField);  elemField = new org.apache.axis.description.ElementDesc( );  elemField.setFieldName(“triggerId”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “triggerId”));  elemField.setXmlType(newjavax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”, “int”)) ;  elemField.setNillable(false);   typeDesc.addFieldDesc(elemField);  elemField = new org.apache.axis.description.ElementDesc( );  elemField.setFieldName(“xml”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “xml”));  elemField.setXmlType(newjavax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”,“string”));   elemField.setMinOccurs(0);   elemField.setNillable(false);  typeDesc.addFieldDesc(elemField);   elemField = neworg.apache.axis.description.ElementDesc( );  elemField.setFieldName(“xmlURL”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “xmlURL”));  elemField.setXmlType(newjavax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”,“anyURI”));   elemField.setMinOccurs(0);   elemField.setNillable(false);  typeDesc.addFieldDesc(elemField);   elemField = neworg.apache.axis.description.ElementDesc( );  elemField.setFieldName(“schema”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “schema”));  elemField.setXmlType(newjavax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”,“string”));   elemField.setMinOccurs(0);   elemField.setNillable(false);  typeDesc.addFieldDesc(elemField);   elemField = neworg.apache.axis.description.ElementDesc( );  elemField.setFieldName(“schemaURL”);   elemField.setXmlName(newjavax.xml.namespace.QName(“http://location/udp”, “schemaURL”));  elemField.setXmlType(newjavax.xml.namespace.QName(“http://www.w3.org/2001/XMLSchema”,“anyURI”));   elemField.setMinOccurs(0);   elemField.setNillable(false);  typeDesc.addFieldDesc(elemField);  }  /**   * Return type metadataobject   */  public static org.apache.axis.description.TypeDescgetTypeDesc( ) {   return typeDesc;  }  /**   * Get Custom Serializer  */  public static org.apache.axis.encoding.Serializer getSerializer(   java.lang.String mechType,    java.lang.Class _javaType,   javax.xml.namespace.QName _xmlType) }    return    neworg.apache.axis.encoding.ser.BeanSerializer(     _javaType, _xmlType,typeDesc);  }  /**   * Get Custom Deserializer   */  public staticorg.apache.axis.encoding.Deserializer getDeserializer(   java.lang.String mechType,    java.lang.Class _javaType,   javax.xml.namespace.QName _xmlType) {   return    neworg.apache.axis.encoding.ser.BeanDeserializer(    _javaType, _xmlType,typeDesc);  } }

The invention claimed is:
 1. A method comprising: receiving, by acomputing device from a wireless device that is associated with acontent access device located at a premises at a location different fromthe computing device, a first content access command that: is formattedbased on a first format; and comprises a first parameter; sending, tothe content access device via a gateway located at the premises, asecond content access command that: is formatted based on a secondformat different from the first format; and comprises a second parameterthat is based on the first parameter.
 2. The method of claim 1, whereinthe second content access command comprises a digital video recorder(DVR) command that is configured to cause the content access device tooutput a content asset corresponding to the second parameter.
 3. Themethod of claim 1, further comprising causing the content access deviceto tune to a channel, tune to a video on demand stream, schedule arecording, generate a message, or execute an application.
 4. The methodof claim 1, wherein the gateway comprises one or more of a set-top box(STB), a digital video recorder (DVR), a modem, or a computer.
 5. Themethod of claim 1, wherein the content access device comprises one ormore of a set-top box (STB), a digital video recorder (DVR), or adisplay device.
 6. A method comprising: receiving, from a wirelessdevice associated with a content access device located at a premises, afirst content access command that: is formatted based on a first format;and comprises a first command value; sending, to a computing device thatis at a location different from a location of the premises, the firstcontent access command; receiving, from the computing device, a secondcontent access command that: is formatted based on a second formatdifferent from the first format; and comprises a second command value;and sending, to the content access device, the second content accesscommand.
 7. The method of claim 6, wherein the second content accesscommand comprises a digital video recorder (DVR) command that isconfigured to cause the content access device to output a content assetcorresponding to the second command value.
 8. The method of claim 6,wherein the second content access command comprises a digital videorecorder (DVR) command that is configured to cause the content accessdevice to output a content asset corresponding to the second commandvalue, and the method further comprising: redirecting, to the wirelessdevice, the content asset.
 9. The method of claim 6, wherein: the secondcontent access command comprises a digital video recorder (DVR) recordcommand; the DVR record command is configured to cause the contentaccess device to record a content asset corresponding to the secondcommand value; and the second command value comprises at least one of asource identifier or a start time.
 10. The method of claim 6, whereinthe second content access command is a channel tune command and thesecond command value is a channel source identifier.
 11. The method ofclaim 6, wherein the second content access command is a video on demand(VOD) tuning command and the second command value is at least one of aprovider identifier or an asset identifier.
 12. The method of claim 6,wherein the second content access command comprises at least one of amessage generation command or an application execution command.
 13. Themethod of claim 6, wherein the content access device comprises at leastone of a set-top box (STB), a digital video recorder (DVR), or a displaydevice.
 14. The method of claim 6, wherein the second format is Enhancedtelevision Binary Interchange Format (EBIF).
 15. An apparatuscomprising: one or more processors; and memory storing instructionsthat, when executed by the one or more processors, cause the apparatusto: receive, from a wireless device that is associated with a contentaccess device located at a premises at a location different from theapparatus, a first content access command that: is formatted based on afirst format; and comprises a first parameter; send, to the contentaccess device via a gateway located at the premises, a second contentaccess command that: is formatted based on a second format differentfrom the first format; and comprises a second parameter that is based onthe first parameter.
 16. The apparatus of claim 15, wherein the secondcontent access command comprises a digital video recorder (DVR) commandthat is configured to cause the content access device to output acontent asset corresponding to the second parameter.
 17. The apparatusof claim 15, wherein the instructions, when executed by the one or moreprocessors, further cause the apparatus to: cause the content accessdevice to tune to a channel, tune to a video on demand stream, schedulea recording, generate a message, or execute an application.
 18. Theapparatus of claim 15, wherein the gateway comprises one or more of aset-top box (STB), a digital video recorder (DVR), a modem, or acomputer.
 19. The apparatus of claim 15, wherein the content accessdevice comprises one or more of a set-top box (STB), a digital videorecorder (DVR), or a display device.
 20. An apparatus comprising: one ormore processors; and memory storing instructions that, when executed bythe one or more processors, cause the apparatus to: receive, from awireless device associated with a content access device located at apremises, a first content access command that: is formatted based on afirst format; and comprises a first command value; send, to a computingdevice that is at a location different from a location of the premises,the first content access command; receive, from the computing device, asecond content access command that: is formatted based on a secondformat different from the first format; and comprises a second commandvalue; and send, to the content access device, the second content accesscommand.
 21. The apparatus of claim 20, wherein the second contentaccess command comprises a digital video recorder (DVR) command that isconfigured to cause the content access device to output a content assetcorresponding to the second command value.
 22. The apparatus of claim20, wherein the second content access command comprises a digital videorecorder (DVR) command that is configured to cause the content accessdevice to output a content asset corresponding to the second commandvalue, and wherein the instructions, when executed by the one or moreprocessors, further cause the apparatus to: redirect, to the wirelessdevice, the content asset.
 23. The apparatus of claim 20, wherein: thesecond content access command comprises a digital video recorder (DVR)record command; the DVR record command is configured to cause thecontent access device to record a content asset corresponding to thesecond command value; and the second command value comprises at leastone of a source identifier or a start time.
 24. The apparatus of claim20, wherein the second content access command is a channel tune commandand the second command value is a channel source identifier.
 25. Theapparatus of claim 20, wherein the second content access command is avideo on demand (VOD) tuning command and the second command value is atleast one of a provider identifier or an asset identifier.
 26. Theapparatus of claim 20, wherein the second content access commandcomprises at least one of a message generation command or an applicationexecution command.
 27. The apparatus of claim 20, wherein the contentaccess device comprises at least one of a set-top box (STB), a digitalvideo recorder (DVR), or a display device.
 28. The apparatus of claim20, wherein the second format is Enhanced television Binary InterchangeFormat (EBIF).
 29. A non-transitory computer-readable medium storinginstructions that, when executed, cause: receiving, by a computingdevice from a wireless device that is associated with a content accessdevice located at a premises at a location different from the computingdevice, a first content access command that: is formatted based on afirst format; and comprises a first parameter; sending, to the contentaccess device via a gateway located at the premises, a second contentaccess command that: is formatted based on a second format differentfrom the first format; and comprises a second parameter that is based onthe first parameter.
 30. The non-transitory computer-readable medium ofclaim 29, wherein the second content access command comprises a digitalvideo recorder (DVR) command that is configured to cause the contentaccess device to output a content asset corresponding to the secondparameter.
 31. The non-transitory computer-readable medium of claim 29,wherein the instructions, when executed, further cause: causing thecontent access device to tune to a channel, tune to a video on demandstream, schedule a recording, generate a message, or execute anapplication.
 32. The non-transitory computer-readable medium of claim29, wherein the gateway comprises one or more of a set-top box (STB), adigital video recorder (DVR), a modem, or a computer.
 33. Thenon-transitory computer-readable medium of claim 29, wherein the contentaccess device comprises one or more of a set-top box (STB), a digitalvideo recorder (DVR), or a display device.
 34. A non-transitorycomputer-readable medium storing instructions that, when executed,cause: receiving, from a wireless device associated with a contentaccess device located at a premises, a first content access commandthat: is formatted based on a first format; and comprises a firstcommand value; sending, to a computing device that is at a locationdifferent from a location of the premises, the first content accesscommand; receiving, from the computing device, a second content accesscommand that: is formatted based on a second format different from thefirst format; and comprises a second command value; and sending, to thecontent access device, the second content access command.
 35. Thenon-transitory computer-readable medium of claim 34, wherein the secondcontent access command comprises a digital video recorder (DVR) commandthat is configured to cause the content access device to output acontent asset corresponding to the second command value.
 36. Thenon-transitory computer-readable medium of claim 34, wherein the secondcontent access command comprises a digital video recorder (DVR) commandthat is configured to cause the content access device to output acontent asset corresponding to the second command value, and theinstructions, when executed, further cause: redirecting, to the wirelessdevice, the content asset.
 37. The non-transitory computer-readablemedium of claim 34, wherein: the second content access command comprisesa digital video recorder (DVR) record command; the DVR record command isconfigured to cause the content access device to record a content assetcorresponding to the second command value; and the second command valuecomprises at least one of a source identifier or a start time.
 38. Thenon-transitory computer-readable medium of claim 34, wherein the secondcontent access command is a channel tune command and the second commandvalue is a channel source identifier.
 39. The non-transitorycomputer-readable medium of claim 34, wherein the second content accesscommand is a video on demand (VOD) tuning command and the second commandvalue is at least one of a provider identifier or an asset identifier.40. The non-transitory computer-readable medium of claim 34, wherein thesecond content access command comprises at least one of a messagegeneration command or an application execution command.
 41. Thenon-transitory computer-readable medium of claim 34, wherein the contentaccess device comprises at least one of a set-top box (STB), a digitalvideo recorder (DVR), or a display device.
 42. The non-transitorycomputer-readable medium of claim 34, wherein the second format isEnhanced television Binary Interchange Format (EBIF).
 43. A systemcomprising: a first computing device; and a second computing device;wherein the first computing device comprises: one or more firstprocessors; and memory storing first instructions that, when executed bythe one or more first processors of the first computing device, causethe first computing device to: receive, from a wireless device that isassociated with the second computing device located at a premises at alocation different from the first computing device, a first contentaccess command that: is formatted based on a first format; and comprisesa first parameter; send, to the second computing device via a gatewaylocated at the premises, a second content access command that: isformatted based on a second format different from the first format; andcomprises a second parameter that is based on the first parameter; andwherein the second computing device comprises: one or more secondprocessors; and memory storing second instructions that, when executedby the one or more second processors of the second computing device,cause the second computing device to: receive the second content accesscommand.
 44. The system of claim 43, wherein the second content accesscommand comprises a digital video recorder (DVR) command that isconfigured to cause the second computing device to output a contentasset corresponding to the second parameter.
 45. The system of claim 43,wherein the first instructions, when executed by the one or more firstprocessors, further cause the first computing device to: cause thesecond computing device to tune to a channel, tune to a video on demandstream, schedule a recording, generate a message, or execute anapplication.
 46. The system of claim 43, wherein the gateway comprisesone or more of a set-top box (STB), a digital video recorder (DVR), amodem, or a computer.
 47. The system of claim 43, wherein the secondcomputing device comprises one or more of a set-top box (STB), a digitalvideo recorder (DVR), or a display device.
 48. A system comprising: afirst computing device; and a second computing device; wherein the firstcomputing device comprises: one or more first processors; and memorystoring first instructions that, when executed by the one or more firstprocessors of the first computing device, cause the first computingdevice to: receive, from a wireless device associated with the secondcomputing device located at a premises, a first content access commandthat: is formatted based on a first format; and comprises a firstcommand value; send, to a computing device that is at a locationdifferent from a location of the premises, the first content accesscommand; receive, from the computing device, a second content accesscommand that: is formatted based on a second format different from thefirst format; and comprises a second command value; and send to thesecond computing device, the second content access command; and whereinthe second computing device comprises: one or more second processors;and memory storing second instructions that, when executed by the one ormore second processors of the second computing device, cause the secondcomputing device to: receive the second content access command.
 49. Thesystem of claim 48, wherein the second content access command comprisesa digital video recorder (DVR) command that is configured to cause thesecond computing device to output a content asset corresponding to thesecond command value.
 50. The system of claim 48, wherein the secondcontent access command comprises a digital video recorder (DVR) commandthat is configured to cause the second computing device to output acontent asset corresponding to the second command value, and wherein thefirst instructions, when executed by the one or more first processors,further cause the first computing device to: redirect, to the wirelessdevice, the content asset.
 51. The system of claim 48, wherein: thesecond content access command comprises a digital video recorder (DVR)record command; the DVR record command is configured to cause the secondcomputing device to record a content asset corresponding to the secondcommand value; and the second command value comprises at least one of asource identifier or a start time.
 52. The system of claim 48, whereinthe second content access command is a channel tune command and thesecond command value is a channel source identifier.
 53. The system ofclaim 48, wherein the second content access command is a video on demand(VOD) tuning command and the second command value is at least one of aprovider identifier or an asset identifier.
 54. The system of claim 48,wherein the second content access command comprises at least one of amessage generation command or an application execution command.
 55. Thesystem of claim 48, wherein the second computing device comprises atleast one of a set-top box (STB), a digital video recorder (DVR), or adisplay device.
 56. The system of claim 48, wherein the second format isEnhanced television Binary Interchange Format (EBIF).